home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
tjlot101.zip
/
LOTTO.DOC
< prev
next >
Wrap
Text File
|
1992-04-07
|
13KB
|
311 lines
============================
The T&J LOTTO Door!
============================
(c)1992 T&J Software
PCBoard 14.x and GAP 4.x
WILDCAT!, Spitfire
QBBS, RBBS, RA
WWIV
VERSION 1.01 04/06/92
By
Tom Wildoner
397 West Broadway
Jim Thorpe, PA
18229
VOICE (717)325-9480
*between 5:30 & 10:00 p.m. Eastern Time
From
The T&J BBS
(717)325-9481
1200/2400/9600/19200/38400
24 Hours/Day
LATEST VERSION:
===============
Please call the T&J BBS for the latest version of this program.
LEGALITIES:
===========
THIS SOFTWARE AND ACCOMPANYING MATERIALS ARE DISTRIBUTED "AS IS" WITHOUT
WARRANTY, EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO ANY
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL ANYONE INVOLVED WITH THE CREATION AND PRODUCTION OF THIS
PRODUCT BE LIABLE FOR INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES, ARISING
OUT OF ANY USE THEREOF OR BREACH OF ANY WARRANTY.
DISTRIBUTION:
=============
You may make this file available for downloading from your BBS or you may
upload it to any BBS of your choice, provided that you do not make any
changes to the contents of the archive (ZIP file). The archive and its
individual contents may not be used by any service that charges any money
whatsoever, without the written permission of the author.
PROGRAM DESCRIPTION:
====================
The T&J LOTTO Door allows your users to select numbers on a type of
lottery ticket. The number range is SysOp configurable along with the
number or tickets a person may enter per day. As the SysOp, you can pick
the prizes awarded for correctly getting 4, 5 or 6 digits correct.
The user gets a chance to pick 10 numbers per lottery ticket from the
number range you specify. The LOTTO.EXE file (maintenance program) must
be run each night. The LOTTO.EXE picks the winning numbers (it selects
6 numbers from the range you specify) and then reads each of the users
lottery tickets and checks for winners. It will LOG the PRIZE WINNING
tickets to a special SYSOP.LOG file for your records. It will also keep
a listing of the last 7 days of winning tickets for the users to check.
The door also maintains a statitics file which will keep track of how many
times the door was played, how many tickets (total) have been purchased,
and the total winning tickets (tickets matching 4, 5, or 6 digits).
The user can check all winning lottery tickets from the previous night
and a summation of all PRIZE WINNING tickets for the last week.
The LOTTO.EXE maintenance program will create a color and ASCII bulletin
either stating that NO winning tickets were picked or that there were
winning tickets picked.
FEATURES:
=========
--- Desqview Aware.
--- COM1-4 support and non-standard IRQ's.
--- Colorful ANSI screens.
--- Chat function.
--- NO BRUN module needed for play.
--- BETA tested on five different boards.
--- Will return to BBS on dropped carrier.
--- Will TIMEOUT a player after 5 minutes of no activity.
--- Use of HOT KEYS while in the door.
--- Handy statistics presented to user on door usage.
--- Support BBS available.
--- Easily RESET the entire program.
LIST OF FILES:
==============
1DAY.DAT ----->>> Summary of last nights winner(s).
2DAY.DAT ----->>> Summary of 2 days ago winner(s).
3DAY.DAT ----->>> Summary of 3 days ago winner(s).
4DAY.DAT ----->>> Summary of 4 days ago winner(s).
5DAY.DAT ----->>> Summary of 5 days ago winner(s).
6DAY.DAT ----->>> Summary of 6 days ago winner(s).
7DAY.DAT ----->>> Summary of 7 days ago winner(s).
LOTTO7.DAT ----->>> Summation of the above 7 files -- shown to the
user while in the door.
DOOR.SYS -----\
LOCAL.CFG ------>> Files for trying th door locally.
LOCAL.BAT -----/
LBULL.TXT -----\
LOTTOC.DAT ------>> Files needed for bulletins.
LOTTOM.DAT -----/
LNUM.DAT ----->>> Data file that holds the computer picked winning
numbers.
LNUMW.DAT ----->>> Summation of all winning tickets.
LNUMW.TXT ----->>> Summation of all winning tickets showing user
name and how many numbers they got correct.
LOT*.DAT ----->>> Data files needed by program!
LOTTO.EXE ----->>> Nightly maintenance program.
LOTTO.KEY ----->>> DEMO KEY file -- once registered, you will receive
a new LOTTO.KEY file.
LOTTO.LOG ----->>> LOG file showing who played the door and other
information. Can be deleted as you see fit.
LOTTOM1.DAT ----->>> Data file needed by LOTTO.EXE.
LPTODAY.DAT ----->>> Data file showing who played the door today. Reset
nightly with LOTTO.EXE
LSTATS.DAT ----->>> Door statistics.
SPECIAL.USR ----->>> See description below!
SYSOP.CFG ----->>> SysOp configuration file -- see details below.
SYSOP.LOG ----->>> Contains a listing of all the PRIZE WINNING
lottery tickets.
TJLOT101.EXE ----->>> MAIN DOOR PROGRAM! No BRUN modules needed -- self
running.
TJLOT.CFG ----->>> Configuration file for TJLOT101.EXE
LOTTO.DOC ----->>> This file.
RESET.EXE ----->>> File for resetting the entire door!
INSTALLATION:
=============
Your TJLOT.CFG file should contain ALL the items listed below (with your
own data, of course). You can use your favorite TEXT EDITOR to make the
changes also.
C:\WILDCAT\CALLINFO.BBS ──┐ <- For Wildcat!
C:\PCB\PCBOARD.SYS │ <- For PCBoard using PCBOARD.SYS only
C:\PCB\USERS │ <- For PCBoard using USERS only
C:\BBS\DOOR.SYS │ <- For Systems that support DOOR.SYS
C:\BBS\DORINFOx.DEF │ <- For QBBS/RBBS/RA. Replace x with Node #.
T&J Software BBS <- Your BBS Name
Tom <- SysOp's First Name
Wildoner <- SysOp's Last Name
Your final CFG file should only have 4 lines.
Your SYSOP.CFG file should contain ALL the items listed below. You can use
your text editor to edit the provided file.
First prize is a registered GAME PACK! A $50 value if you have a
winning 6 number LOTTO ticket!
If you get five digits, you'll get a free registered door of your
choice! Pick the one you like best!
And, if you get 4 digits, get a free registered copy of the OneRun
program -- a $5 value!
c:\wc30\bull\bull1.scr
c:\wc30\bull\bull1.bbs
60
6
LINE 1&2: The prize that will be awarded for getting all 6 numbers
correct. If you only use one line, leave line 2 blank! Try
to limit each line to 70 characters. This text will be
centered in the door display, so don't worry about centering.
LINE 3&4: The prize that will be awarded for getting 5 numbers correct.
follow the same guidance as above.
LINE 5&6: The prize that will be awarded for getting 4 numbers correct.
follow the same guidance as above.
LINE 7: PATH to your color bulletin.
LINE 8: PATH to your ASCII bulletin.
LINE 9: The range for your numbers (i.e. from 1 to ??). Try keeping
this number between 40 and 80 in intervals of 10 (40, 50, 60
70, or 80). What are the chances of winning you ask? See the
section titled CHANCES?!? listed below.
LINE 10: How many tickets a person can enter in one day.
The file MUST have all 10 lines!
Next, make your DOORx.BAT file following the example provided:
LIVECAT! USERS (WILDCAT!3.0 ONLY!!!!!!)
If you are using LIVECAT! to control your doors you will need to
make one small change in your door.bat file. LC! changes DOOR.SYS to
DOOR.ORG when it shells out to the door. You will need to add a line in
your script COPY DOOR.ORG DOOR.SYS. If you don't do this, Dollarmania!
just gives up and dies a very unhappy death. Add the above listed line
right after the ECHO OFF line.
ECHO OFF
COPY DOOR.ORG DOOR.SYS --->For WC3.x and LIVECAT ONLY!!
CD\WC30\DOOR\LOTTO
TJLOT101 TJLOT.CFG
To run in LOCAL mode simply run the LOCAL.BAT file.
MULTINODE SYSTEMS:
==================
This door is DesqView aware, when running in more than one node, be
sure to supply a different configuration name for each node (your
choice of name).
EX: TJLOT1.CFG TJLOT2.CFG
NOTE: T&J LOTTP supports COM 1-4 on the standard IRQ's - COM1/COM3 = IRQ4
and COM2/COM4 = IRQ3. If you wish to use a non-standard IRQ, add the IRQ
number after the configuration filename. Let's assume you COM1 and
IRQ5. The command line passed to your Door would be:
TJLOT101 TJLOT.CFG /5
The /5 tells T&J LOTTO to use IRQ5 rather than the standard IRQ4 that
is normally used with COM1. No /x parameter is needed for the standard
IRQ's.
CHANCES?!?
==========
How often do you want your users to win? I randomly generated 25,000 tickets
for each possible range of number (i.e. 1 to 40, 1 to 50, 1 to 60, 1 to 70,
and 1 to 80). The data will show how many tickets had 0 numbers picked, 1
number picked, etc.... Here are the results I obtained:
Number Range from 1 to 30, tickets generated: 25000
0: 1635 1: 6466 2: 9183 3: 5831 4: 1681 5: 199 6: 6
Number Range from 1 to 40, tickets generated: 25000
0: 3775 1: 9270 2: 8169 3: 3127 4: 615 5: 44 6: 1
Number Range from 1 to 50, tickets generated: 25000
0: 6093 1: 10228 2: 6516 3: 1880 4: 266 5: 18 6: 0
Number Range from 1 to 60, tickets generated: 25000
0: 7807 1: 10694 2: 5197 3: 1172 4: 123 5: 8 6: 0
Number Range from 1 to 70, tickets generated: 25000
0: 9554 1: 10374 2: 4215 3: 779 4: 78 5: 1 6: 0
Number Range from 1 to 80, tickets generated: 25000
0: 10953 1: 10090 2: 3384 3: 538 4: 36 5: 0 6: 0
As you can see, the higher the number, the fewer 4, 5, and 6 digit
winners are. This doesn't mean that a user on his first attempt will
not hit the BIG ONE (6 digits) on his first attempt at picking numbers
from the range of 1 to 80!
If you have a very nice prize setup for hitting 6 digits, then use a
higher number!
THE SPECIAL.USR FILE:
====================
The SPECIAL.USR file is just what is implied. It's there for special
users of your system. Simply enter their name followed by a comma and then
enter how many tickets they can play per day! See the example SPECIAL.USR
file supplied with the door.
The number of tickets listed after their name will over-ride the default
number of tickets you have listed in your SYSOP.CFG file. One idea
you can use is to make the prize for getting 4 digits correct is increasing
the number of tickets that user can play per day! If they hit 4 digits, add
there name to the SPECIAL.USR file and increase the number of tickets they
can play!
RESETTING THE DOOR:
==================
A small program is included called RESET.EXE -- run this when you want
to reset the game from scratch. You will have to make changes in your
SYSOP.CFG file manually.
MAINTENANCE!:
============
You must run the LOTTO.EXE program as part of your nightly maintenance
work for the door to operate properly! The maintenance routines for
BBS's vary, so it's up to you to determine how to run this program as
part of your maintenance.
FUTURE VERSIONS:
================
--->> Let me know what you would like to see!
VERSION HISTORY:
===============
Version 1.00 ......... First release. 03/28/92
Version 1.01 ......... Modified the computer generated ticket routines,
no major problem but it needed to be fixed. 4-6-92
REGISTERING:
============
That's all there is to it! If you have any problems or questions
please feel free to call the T&J BBS at (717)325-9481 and join the
T&J Software Conference.
See the enclosed registration form for ordering! (REGISTER.TXT)